class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos, :force => true do |t|
      t.string  :title  # photo title/name
      t.string  :description, :limit => 255 # photo description
      t.integer :product_id                # product id
      t.integer :image_id                  # image id
      t.string  :pic_file_name             # picture original name 
      t.string  :pic_content_type          # Mime type
      t.integer :pic_file_size             # File size in bytes
      t.datetime :pic_updated_at           # File updated time
      
      t.timestamps
    end
  end

  def self.down
    drop_table :photos
  end
end
